package com.hong.spring.common.aspectj;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 * @Auther: csh
 * @Date: 2020/7/15 17:36
 * @Description:
 */
@Aspect
public class PreGreetingAspect {
    @AfterReturning("@@annotation(com.hong.spring.)")

    @Before("execution(* greeTo(..))")
    public void beforeGreetion(){
        System.out.println("拦截到方法！");
    }
}
